package io.renren.modules.live.dao;

import io.renren.modules.live.entity.FanweAnchorEntity;
import io.renren.modules.live.entity.FanweAnchoridUseridEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author shaoqi
 * @email sunlightcs@gmail.com
 * @date 2020-11-19 12:07:23
 */
@Mapper
public interface FanweAnchoridUseridDao extends BaseMapper<FanweAnchoridUseridEntity> {

    List<FanweAnchorEntity> attentionAnchorInfo(Integer userId);

    void addAttentionAnchorInfo(@Param("userId") Integer userId, @Param("anchorId") Integer anchorId);

    void deleteaAttentionAnchorInfo(@Param("userId") Integer userId, @Param("anchorId") Integer anchorId);

    List<Integer> findByUserId(Integer userId);
}
